package showtime.framework.algorithm.scroller
{
	import flash.display.DisplayObject;

	/**
	 * @project Client
	 * @date 2011-7-18
	 * @author 绿豆蛙
	 * 
	 */
	public class DefaultScroller extends Scroller
	{
		private var _graphic:DisplayObject = null;
		
		public function DefaultScroller(graphic:DisplayObject)
		{
			super(null, null);
			
			_graphic = graphic;
		}
		
		override public function render(_currentX:int = 0, _currentY:int = 0, dx:int = 0, dy:int = 0):void
		{
			_graphic.x = -_currentX;
			_graphic.y = -_currentY;
		}
	}
}